package com.cat.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cat.common.entity.SysRole;

import java.util.List;

/**
 * @author dd-cat
 * @version 1.0
 * @date 2020-10-13 10:55
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {

    /**
     * 通过用户ID，查询角色信息
     *
     * @param userId 用户id
     * @return List<SysRole>
     */
    List<SysRole> listRolesByUserId(Long userId);

}
